home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 44 / Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso / -in_the_mag- / basics / blitz / gorny3dset.lha / pyramid.plg < prev    next >
Text File  |  1996-01-14  |  944b  |  42 lines

  1.    ; PGL 3D object file format
  2.    ; - Comments are precede by ";" or "#"
  3.    ; - First line must contain:
  4.    ;   object name, number of vertices, number of polygons
  5.    ; - List of vertices follows next:
  6.    ;   X Y Z format, one vertex per line
  7.    ; - List of polygons follows next:
  8.    ;   color descriptor, followed by number of vertices in that polygon,
  9.    ;   followed by vertice list composing that polygon
  10.    ;
  11.    ; WARNING: In Blitz2 implementation color values have to be a decimal
  12.    ;          number, not a hex number which starts with 0x prefix.
  13.    ;
  14.  
  15. #BEGIN PGL
  16. ;
  17. pyramid 5 5
  18.  
  19. ;
  20. ; vertex list
  21. ;
  22.   0  100   0
  23.  40   0   40
  24.  40   0  -40
  25. -40   0  -40
  26. -40   0   40
  27.  
  28. ;
  29. ; polygon list
  30. ;
  31.  
  32. ;color    #verts  vert1  vert2  vert3   vert4
  33. ;
  34.    16        3       0      2      3
  35.    16        3       0      1      2
  36.    16        3       0      4      1
  37.    16        3       0      3      4
  38.    16        4       3      2      1       4
  39.  
  40.  
  41. # END PLG
  42.